package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    /**
     * 获取所有护理计划
     * @return
     */
    List<NursingPlan> getAll();

    /**
     * 新增护理计划
     * @param plan
     */
    void insert(NursingPlan plan);

    /**
     * 条件分页查询
     * @param name
     * @param status
     * @return
     */
    Page<NursingPlanVo> getPage(String name, Integer status);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    NursingPlanVo getById(Long id);

    /**
     * 修改
     * @param nursingPlan
     */
    void update(NursingPlan nursingPlan);

    /**
     * 删除
     * @param id
     */
    void delete(Integer id);

    void status(Long id, Integer status);
}
